package com.heo.pojo;

import com.heo.util.ByteHelper;

public class ActiveInfoEntity  extends BaseEntity{

	private static final long serialVersionUID = 1L;
	private int passageway;
	private String userMobile;
	private int settStatus;//充电状态  1 开始充电上传；2 结束充电上传；3 终端停电上传；4 充电过程实时上传
	private float chargePower;
	private float chargeAmount; //
	private int status;
	
	public ActiveInfoEntity(String bodyHex) {
		passageway = ByteHelper.hex16ToInt(bodyHex.substring(0, 2));
		userMobile = bodyHex.substring(2, 26);
		settStatus = ByteHelper.hex16ToInt(bodyHex.substring(26, 28));
		chargePower = 1.2f;//bodyHex.substring(28, 36);
		chargeAmount = 1.3f;//bodyHex.substring(36, 44);
		status = ByteHelper.hex16ToInt(bodyHex.substring(44, 46));
	}

	public int getPassageway() {
		return passageway;
	}

	public void setPassageway(int passageway) {
		this.passageway = passageway;
	}

	public String getUserMobile() {
		return userMobile;
	}

	public void setUserMobile(String userMobile) {
		this.userMobile = userMobile;
	}

	public int getSettStatus() {
		return settStatus;
	}

	public void setSettStatus(int settStatus) {
		this.settStatus = settStatus;
	}

	public float getChargePower() {
		return chargePower;
	}

	public void setChargePower(float chargePower) {
		this.chargePower = chargePower;
	}

	public float getChargeAmount() {
		return chargeAmount;
	}

	public void setChargeAmount(float chargeAmount) {
		this.chargeAmount = chargeAmount;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}

}
